package org.wanho.sms.service;

import java.util.List;

import org.wanho.sms.entity.Student;
import org.wanho.sms.exception.StudentNameExistsException;
import org.wanho.sms.exception.StudentNotFoundException;

public interface StudentService {
	
	public List<Student> findAll();
	
	public Student findById(int id);
	
	public void modify(Student stu);
	
	public void add(Student stu) throws StudentNameExistsException;
	
	public void removeById(int id);

	public void swap(String name1, String name2) throws StudentNotFoundException;
}
